package wlxldh357;

import java.util.Scanner;

public class J12_Gugudan2 {

	public static void main(String[] args) {

		// 문제 4 : 단값을 입력받아 해당 단을 출력
		// while, do-while, for 반복문등을 이용해서 작성

		// while
		int l = 1;
		Scanner sc = new Scanner(System.in);
		int dan = sc.nextInt();
		while (l <= 9) {
			System.out.println(dan + "x" + l + "=" + dan * l);
			++l;
		}
        //do-while
      /*  int m = 1;
        dan= sc.nextInt();
        do { 
        	System.out.println(dan + "x" + m+ "=" + dan*m);
        	++m;
        }while (m <=9);

        
        //for
	    dan= sc.nextInt();
        for(int n = 1; n <=9; ++n)
        	System.out.println(dan + "x" + n + "=" + dan*n);*/
	}
}
